package com.kyivmohyla.kma2.model;

import java.io.Serializable;

public class OrderServEquip implements Serializable {
    private static final long serialVersionUID = 1L;
    private int orderId;
    private int servEquipId;

    public OrderServEquip() {
    }

    public int getOrderId() {
        return orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    public int getServEquipId() {
        return servEquipId;
    }

    public void setServEquipId(int servEquipId) {
        this.servEquipId = servEquipId;
    }

    @Override
    public boolean equals(Object other) {
        return (other instanceof OrderServEquip) ? orderId == ((OrderServEquip) other).orderId
                : (other == this);
    }

    @Override
    public int hashCode() {
        return this.getClass().hashCode();
    }

    @Override
    public String toString() {
        return String
                .format("OrderServEquip(orderId = %d, servEquipId = %s)",
                        orderId, servEquipId);
    }
}